/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: SalesOrganizationServiceImpl.java
 * @PageName		: 매출현황 - 조직별
 * @Date			: 오후 4:06:43
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.sales.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.pulp.sales.dao.SalesOrganizationDAO;
import com.pulp.sales.model.SalesOrganizationInfo;
import com.pulp.sales.service.SalesOrganizationService;

/**
 * @author 최경민
 * 
 */
public class SalesOrganizationServiceImpl implements SalesOrganizationService {
	private SalesOrganizationDAO salesOrganizationDAO;

	/**
	 * SalesOrganizationDAO 객체를 반환한다.
	 * 
	 * @return the sales organization dao
	 */
	public SalesOrganizationDAO getSalesOrganizationDAO() {
		return salesOrganizationDAO;
	}

	/**
	 * SalesOrganizationDAO 객체를 설정한다.
	 * 
	 * @param dao the new sales organization dao
	 */
	public void setSalesOrganizationDAO(SalesOrganizationDAO dao) {
		this.salesOrganizationDAO = dao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.pulp.management.service.SalesOrganizationService#
	 * getSalesOrganColumnChartList()
	 */
	@Override
	public List<SalesOrganizationInfo> getSalesOrganColumnChartList() throws SQLException {
		return salesOrganizationDAO.getSalesOrganColumnChartList();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.pulp.management.service.SalesOrganizationService#
	 * getSalesOrganTotalColumnChartList()
	 */
	@Override
	public List<SalesOrganizationInfo> getSalesOrganTotalColumnChartList() throws SQLException {
		return salesOrganizationDAO.getSalesOrganTotalColumnChartList();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.pulp.management.service.SalesOrganizationService#getSalesOrganTableList
	 * ()
	 */
	@Override
	public List<SalesOrganizationInfo> getSalesOrganTableList() throws SQLException {
		return salesOrganizationDAO.getSalesOrganTableList();
	}

}
